package com.dhsc.local.dao.impl.yykh.yyzlkh;

import com.dhsc.domain.ywzx.yykh.yyzlkh.YwxtcsVo;
import com.dhsc.local.dao.yykh.yyzlkh.IYwxtcsDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName YwxtcsDaoImpl
 * @description: 业务系统测试
 * @author: gx
 * @create: 2024-04-25 18:41:30
 **/
@Repository("ywxtcsdao")
public class YwxtcsDaoImpl implements IYwxtcsDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<YwxtcsVo> queryYwxtcs(YwxtcsVo ywxtcsVo) {
        return localSqlSessionTemplate.selectList("YwxtcsMapper.queryYwxtcs",ywxtcsVo);
    }

    @Override
    public int saveYwxtcs(List<YwxtcsVo> list) {
        return localSqlSessionTemplate.insert("YwxtcsMapper.saveYwxtcs",list);
    }

    @Override
    public int removeYwxtcs() {
        return localSqlSessionTemplate.delete("YwxtcsMapper.removeYwxtcs");
    }
}
